package com.xiaodimall.backsys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 轮播图表
 * @TableName tb_carousel
 */
@TableName(value ="tb_carousel")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Carousel extends BasePojo {
    /**
     * 首页轮播图主键id
     */
    @TableId(value = "carousel_id",type = IdType.AUTO)
    private Integer carouselId;

    /**
     * 轮播图
     */
    @TableField("carousel_url")
    private String carouselUrl;

    /**
     * 点击后的跳转地址(默认不跳转)
     */
    @TableField("redirect_url")
    private String redirectUrl;

    /**
     * 排序值(字段越大越靠前)
     */
    @TableField("carousel_rank")
    private Integer carouselRank;

    /**
     * 删除标识字段(0-未删除 1-已删除)
     */
    @TableField("is_deleted")
    private Integer isDeleted;
}